//
//  NewsCell.m
//  11215
//
//  Created by student on 16/3/8.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "NewsCell.h"

@implementation NewsCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setNews:(NewsModel *)news{
    _news=news;
    
    self.iconImageView.image=[UIImage imageNamed:news.image];
    self.titelLable.text=news.title;
    self.dateLable.text=news.date;
    self.contentLable.text=news.Text;
}

@end
